$(function () {
    var flag=true;
    $("#myform")[0].user_tel.oninput=function () {
        var telStr=this.value;
        var reg=/^(((13)[0-9])|((14)[7])|((15)[1-27-9]))(\d{8})$/
        flag=reg.test(telStr);
        if(flag!=true){
            $("#msg_tel").html("请输入正确的手机号!")
        }else{
            $("#msg_tel").html("")
        }
    };
    $("#myform")[0].user_num.onfocus=function () {
        $("#msg_vcode").html("请输入验证码!")
    }
    $("#myform")[0].user_num.onblur=function () {
        $("#msg_vcode").html("")
    }
})